package com.jnshu.dao;

import com.jnshu.pojo.History;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName HistoryMapper
 * @Descrintion
 * @Author bd
 * @Date 2019/8/3 16:25
 * @Version 1.0
 **/
@Mapper
public interface HistoryMapper {

    boolean deleteByPrimaryKey(long courseId);

    //前台资料输入历史
    int insert(History record);

    int insertSelective(History record);

    History selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(History record);

    int updateByPrimaryKey(History record);

    //查询记录

    History selectRecord(@Param("userId") Long userId, @Param("courseId") Long courseId);
}
